public class Card implements Comparable<Card>
{	
	public String suit;
	public Rank rank;
	
	public int getOrdinal()
	{
		return rank.ordinal();
	}

	Card(String suit2, Rank rank2) 
	{
		suit=suit2;
		rank=rank2;
	}

	public int compareTo(Card compareCard) 
	{		 
		int compareOrdinal = ((Card) compareCard).getOrdinal(); 
		//ascending order
		return this.rank.ordinal() - compareOrdinal;
	}	
}
